﻿<!DOCTYPE html>
<html>
<head>
<title>任务</title>
<meta name="Keywords" content="关键字">
<meta name="Description" content="内容">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/style.css" media="all"> 
<script type="text/javascript" src="__PUBLIC__/home/js/jquery-1.9.1.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/home/js/size.js"></script>
<script src="__PUBLIC__/home/js/slide.js"></script> 
</head>
<body>
<div class="tasklist">
    <div class="hd">
        <ul>
            <li>未完成</li>
            <li>已完成</li>
            <li>全部</li>
        </ul>
    </div>
    <div class="bd">
        <!--未完成-->
        <ul>
            <foreach name="wdata" item="vo">    
            <li>
                <if condition="$role eq 1">
                    <a href="{:U('editTask')}?id={$vo['id']}">
                <else/>
                    <a href="{:U('showTaskDetail')}?id={$vo['id']}">
                </if>
                    <div class="ico"></div>
                    <div class="txt">
                        <h3>{$vo['name']}</h3>
                        <div class="times">{$vo['end_time'] | date='Y-m-d H:i',###} 截止</div>
                    </div>
                    <if condition="$vo['day'] gt 0">
                    <div class="xpire {$vo['style']}">
                        <p>距离到期</p>
                        <p>时间{$vo['day']}天</p>
                    </div>
                    <else />
                    <div class="xpire red">
                        <p>日程逾期</p>
                        <p>{$vo['day'] | abs}天</p>
                    </div>
                    </if>
                </a>
            </li>
            </foreach>
        </ul>
        <!--已完成-->
        <ul>
            <foreach name="ydata" item="vo">    
            <li>
                <a href="{:U('showTaskDetail')}?id={$vo['id']}">
                    <div class="ico"></div>
                    <div class="txt">
                        <h3>{$vo['name']}</h3>
                        <div class="times">{$vo['end_time'] | date='Y-m-d H:i',###} 截止</div>
                    </div>
                    <div class="xpire gray">
                        <p>已完成</p>
                    </div>
                </a>
            </li>
            </foreach>           
        </ul>
        <!--全部-->
        <ul>
            <foreach name="data" item="vo">    
            <li>
                <if condition="$role eq 1 and $vo['status'] eq 2">
                    <a href="{:U('editTask')}?id={$vo['id']}">
                <else/>
                    <a href="{:U('showTaskDetail')}?id={$vo['id']}">
                </if>
                    <div class="ico"></div>
                    <div class="txt">
                        <h3>{$vo['name']}</h3>
                        <div class="times">{$vo['end_time'] | date='Y-m-d H:i',###} 截止</div>
                    </div>
                    <if condition="$vo['status'] eq 2">
                        <if condition="$vo['day'] gt 0">
                        <div class="xpire {$vo['style']}">
                            <p>距离到期</p>
                            <p>时间{$vo['day']}天</p>
                        </div>
                        <else />
                        <div class="xpire red">
                            <p>日程逾期</p>
                            <p>{$vo['day'] | abs}天</p>
                        </div>
                        </if>
                    <else />
                    <div class="xpire gray">
                        <p>&nbsp;&nbsp;已完成&nbsp;&nbsp;</p>
                    </div>
                    </if>
                </a>
            </li>
            </foreach>  
        </ul>
    </div>
</div>
<include file="Public/footer" />
<script>
jQuery(".tasklist").slide({titCell:".hd ul li",mainCell:".bd",trigger:"click"});
</script>
</body>
</html>